Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP class: convert isBlacklisted method in public #128

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

apachejack
Copy link

Hi,

I would like to convert one of the methods in public to be able to use the black-list without validating the email using the PHP filter function.

filter_var($email, FILTER_VALIDATE_EMAIL) doesn't validate correctly the allowed email patterns exposed in this Wikipedia article: https://en.wikipedia.org/wiki/Email_address#Local-part

Thanks for this great job,
Kind regards.

@FGRibreau
Copy link
Owner

I would like to convert one of the methods in public to be able to use the black-list without validating the email using the PHP filter function.

no problem. 👍

filter_var($email, FILTER_VALIDATE_EMAIL) doesn't validate correctly the allowed email patterns exposed in this Wikipedia article: https://en.wikipedia.org/wiki/Email_address#Local-part

Reading PHP doc :

Validates whether the value is a valid e-mail address.

In general, this validates e-mail addresses against the syntax in RFC 822, with the exceptions that comments and whitespace folding and dotless domain names are not supported.

You might want to bring that up to the PHP team :)

@FGRibreau FGRibreau merged commit b2c19d3 into FGRibreau:master Mar 6, 2018
@FGRibreau
Copy link
Owner

@apachejack released in v3.0.37 ;)

@apachejack
Copy link
Author

Nice! Thanks @FGRibreau

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants